#第一问
class MyMath:
    @staticmethod
    def add(a, b):
        return a + b

    def sub(a, b):
        return a - b

    def mul(a, b):
        return a * b

    def div(a, b):
        return a / b

    def ediv(a, b):
        return a // b

    def rem(a, b):
        return a % b

    def sqrt(a, b):
        return float(a ** (1 / 2))
print(MyMath.add(10,5))

#第二问
class Dog:
    cute_dog = True
    __mydog = {"mm": 3}
    def __init__(self, name, age):
        self.name = name
        self.age = age

    @classmethod
    def sit(self):
        print(f"{self.name} is now sitting.")

    def roll(self):
        print(f"{self.name} rolled ouer!")

print(Dog._Dog__mydog)
tole = Dog("加菲",40)
print(tole)





